#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include"List.h"
using namespace std;
int main()
{	
	xyx::List<int>rl;
	rl.push_back(1);
	rl.push_back(2);
	rl.push_back(3);
	rl.push_back(4);
	xyx::List<int>::reverse_iterator it = rl.rbegin();
	while (it != rl.rend())
	{
		cout << *it << " ";

	}
	return 0;
}